package com.youlai.boot.modules.brand.model;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(componentModel = "spring")
public interface BrandConverter {

    BrandForm entityToForm(Brand brand);

    BrandVO entityToVo(Brand brand);

    @Mapping(target = "createTime", ignore = true)
    @Mapping(target = "updateTime", ignore = true)
    Brand formToEntity(BrandForm form);
}
